
<div class="visible-xs">
	<br />
	<br />
	<br />
</div>
<div class="menuligne1">
	<ul id="nav">
	 <div id="home"><a href="<? echo $view['router']->generate('lea_index'); ?>"></a> </div>
            <li class="menuHorizontal">
               &nbsp;Hey <?php echo $user; ?><ul>
                        <li><a href="<? echo $view['router']->generate('lea_index'); ?>">Deconnexion</a></li>
                      </ul>

              &nbsp;
              	<select name="refFT" >
				<option value="FA">Alternance</option>
				<option value="FI">Stages</option>
				<option value="FA_FI" selected='true'>Alt./Stages</option>
				</select>

              	<select name="refYear">
              	<option value="2014">2014</option>
				<option value="2013">2013</option>
				<option value="2012" selected='true'>2012</option>
				<option value="2011">2011</option>
				<option value="2010">2010</option>
				<option value="2009">2009</option>
				</select>
            </li>
    </ul>
   <!--
  <div id="bandeau"></div-->
</div>
<br />
<br />
<?php
if($arrayResp != null){
?>
	<div class="hidden-xs">
		<div class="menuligne3" style="background-color:orange">
		<?php
				for($i=0 ; $i < sizeof($arrayResp) ; $i++){?>
					|<a href="<? echo $view['router']->generate($menuResp[$i],array('user' => $user, 'refYear' => $refYear) ); ?>" > <?= $arrayResp[$i] ?> </a >
				<?php }?>

		</div>
	</div>
<?php
}
if($arraySecr != null){
?>

	<div class="hidden-xs">
		<div class="menuligne3" style="background-color:yellow">
		<?php
				for($i=0 ; $i < sizeof($arraySecr) ; $i++){?>
					|<a href="<? echo $view['router']->generate($menuSecr[$i],array('user' => $user, 'refYear' => $refYear) ); ?>" > <?= $arraySecr[$i] ?> </a >
				<?php }?>

		</div>
	</div>
<?php
}
if($arrayProf != null){
?>


	<div class="hidden-xs">
		<div class="menuligne3" style="background-color:grey">
		<?php
				for($i=0 ; $i < sizeof($arrayProf) ; $i++){?>
					|<a href="<? echo $view['router']->generate($menuProf[$i],array('user' => $user, 'refYear' => $refYear) ); ?>" > <?= $arrayProf[$i] ?> </a >
				<?php }?>
		</div>
	</div>


<div class="visible-xs">
	<div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">MENU</a>
        </div>
        <div class="collapse navbar-collapse">

          <ul class="nav navbar-nav">
          	<?
if($arrayResp != null){
	?>
          	<li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Responsable <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <?php
				for($i=0 ; $i < sizeof($arrayResp) ; $i++){?>
            <li><a href="<? echo $view['router']->generate($menuResp[$i],array('user' => $user, 'refYear' => $refYear) ); ?>"><?=$arrayResp[$i] ?> </a></li>
            <?php }?>
          </ul>
        </li>
        <?
	} if($arraySecr != null){
	?>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Secretaire <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <?php
				for($i=0 ; $i < sizeof($arraySecr) ; $i++){?>
            <li><a href="<? echo $view['router']->generate($menuSecr[$i],array('user' => $user, 'refYear' => $refYear) ); ?>"><?=$arraySecr[$i] ?> </a></li>
            <?php }?>
          </ul>
        </li>
        <?
	} if($arrayProf != null){
	?>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Professeur <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <?php
				for($i=0 ; $i < sizeof($arrayProf) ; $i++){?>
            <li><a href="<? echo $view['router']->generate($menuProf[$i],array('user' => $user, 'refYear' => $refYear) ); ?>"><?=$arrayProf[$i] ?> </a></li>
            <?php }?>
          </ul>
        </li>
        <?
	}
	?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

</div>

<?php } ?>
